package com.多线程基础.常用方法.优先级方法;
public class ThreadDemo {
    public static void main(String[] args) {
        MyThread myThread=new MyThread();
        Thread r1=new Thread(myThread,"飞机");
        Thread r2=new Thread(myThread,"坦克");
        r1.setPriority(10);
        r2.setPriority(5);
        r1.start();
        r2.start();
    }


}
